package com.wj.community.util;

/**
 * @author: WangJin
 * @description
 * @date: 2021/9/27 9:51
 */
public class RedisKeyUtil {
    private static final String SPLIT = ":";
    private static final String PREFIX_ENTITY_LIKE = "like:entiry";

    //某个实体的赞
    //like:entiry:entiryType:entityId -> set(userId)
    public static String getEntityLikeKey(int entityType, int entityId){
        return PREFIX_ENTITY_LIKE + SPLIT + entityType + SPLIT + entityId;
    }
}
